import request from '@/utils/request'

// 查询全部参数点数据
export function listPointData() {
  return request({
    url: '/point/listAll',
    method: 'GET',
  })
}

// 根据参数点id查询某参数点数据
export function getDataByPointId(pointId) {
  return request({
    url: '/data/getByPointId/' + pointId,
    method: 'GET',
  })
}

// 根据参数点code查询某参数点数据
export function getDataByPointCode(code) {
  return request({
    url: '/data/getDataByPointCode/' + code,
    method: 'GET',
  })
}

// 根据多个参数点code查询某参数点数据，逗号分隔
export function listByPointCodes(codeStr) {
  return request({
    url: '/data/listByPointCodes/' + codeStr,
    method: 'GET',
  })
}
